<div class="bjui-pageHeader">
    <div class="pull-right">
        <button class="btn-default" data-icon="plus" title="新增商家分类" data-toggle="tooltip" data-placement="left" onclick="createDialog('{:U("Forms/shoplev")}', '新增商家分类', 'shoplev', {width:500})"></button>
        <button class="btn-default" data-icon="refresh" onclick="$.CurrentNavtab.navtab('refresh')"></button>
    </div>
    <form id="pagerForm" data-toggle="ajaxsearch" data-loadingmask="true" action="{:U('lev')}" method="post">
        <input type="hidden" name="pageSize" value="{:I('param.pageSize')}" />
        <input type="hidden" name="pageCurrent" value="{:I('param.pageCurrent')}" />
        <input type="hidden" name="orderField" value="{:I('param.orderField')}" />
        <input type="hidden" name="orderDirection" value="{:I('param.orderDirection')}" />
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
        <tr>
            <th>No.</th>
            <th>分类名称</th>
            <th>排序号</th>
            <th>添加时间</th>
            <th width="100">操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.name}</td>
            <td>{$vo.sort}</td>
            <td>{$vo.add_time}</td>
           <!--  <td>{$vo.max_money}</td>
            <td>{$vo.discount}</td>
            <td>{$vo.content}</td> -->
            <td>
                <button type="button" class="btn-green" onclick="createDialog('{:U("Forms/shoplev",array("id"=>$vo["id"]))}', '编辑商家分类', 'shoplev', {width:500})" >改</button>
                <a href="{:U('Forms/del_shop_lev',array('id'=>$vo['id']))}" data-type="get" class="btn btn-red" data-toggle="doajax" data-confirm-msg="你确定要删除这个分类吗？" >删</a>
            </td>
        </tr>
        </volist>
        </tbody>
    </table>
</div>
<include file="Common/footer" ftype="page" />